package com.rmondjone.face

import com.rmondjone.androidcamerademo.R
import com.rmondjone.utils.setClickListener
import com.rmondjone.view.BaseDialog
import kotlinx.android.synthetic.main.dialog_tips.*

/**
 * copyright：
 * @author：anthui creation date： .
 * @since: 1.0.0
 * @describe:
 */
class TipsDialog : BaseDialog() {

    var tips = ""
    override fun initComponents() {


        tv_content.text = tips
        iv_pic.setClickListener {
            click?.invoke()
            dismiss()
        }
        tv_reset.setClickListener {
            click?.invoke()

            dismiss()
        }
    }

    var click: (() -> Unit)? = null


    override fun initData() {
    }

    override fun getMainContentViewId(): Int {
        setOutCancel(false)
        return R.layout.dialog_tips
    }

}